package com.lz.controller;

import com.lz.pojo.Goods;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/9/24 下午12:50
 * </pre>
 **/
@RequestMapping("/goods")
@RestController
public class GoodsController {
    @PostMapping("/list")
    public List<Goods> list() {
        ArrayList<Goods> list = new ArrayList<>();
        list.add(new Goods(1, "iphone", 8999));
        list.add(new Goods(2, "iphone", 8998));
        list.add(new Goods(3, "iphone", 8997));
        return list;
    }
}
